package com.pccw.ssh.managerTest;

import junit.framework.TestCase;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.pccw.ssh.service.StockService;
import com.pccw.ssh.testFactory.SpringBeanFactoryMethodI;
import com.pccw.ssh.vo.StockVO;

public class TestStockService extends TestCase{
	
	private Log log = LogFactory.getLog(this.getClass());
	
	public static void main(String[] args){
		TestStockService ts = new TestStockService();
		ts.testBetByPK();
	}

	public void testBetByPK(){
		StockService stockService = (StockService) SpringBeanFactoryMethodI.getBean("stockService");
		StockVO stockVO = stockService.getByPK("601299");
		log.info("========== stockVO.getName():"+stockVO.getName());
		assertEquals("ChinaNorthCar", stockVO.getName());
	}
}
